<!-- LOGO/ HEADER -->
<header>
    <img src="<?php echo base_url(); ?>assets/images/cbcsystem.png" alt="CBCSystem">
</header>

<!-- NAVIGATION TAB -->
<?php
$tNav = (isset($template ['nav'])) ? $template ['nav'] : 'essential/guest_header';
$this->load->view($tNav);
?>

<!-- TOP BANNER/ INTRODUCTION -->
<?php
if (isset($template['topbanner']))
    $this->load->view('essential/topbanner');
?>

<!-- CONTENT PLACEHOLDER -->

<div id="content"><!-- CONTENT MAIN -->
    <?php
    $tBody = (isset($template ['content'])) ? $template ['content'] : 'home';
    $this->load->view($tBody);

    if (!isset($template['nosidebar']) || $template['nosidebar'] == FALSE) {
        ?>

        <!-- CONTENT SIDEBAR -->
        <aside>
			<section>
            	<header>
               		<h3>DAFTAR SEKARANG JUGA!</h3>
            	</header>
            	<p>Akselerasi Bisnis Anda dengan <em>Mudah, Murah &amp; Melimpah</em>.Sekali Berinvestasi, dapat tetap tergabung di beberapa Jaringan Bisnis terpilih. Optimalisasikan kesempatan Anda untuk meraih SUKSES di hari ini!</p>
                <p>Membangun Bisnis Bersama, Untuk Meraih Suskses Bersama</p>
            	<p class="register"><a href="<?php echo site_url('register'); ?>">Register Now</a></p>
                
                
                <!-- NEW MEMBERS / FOR LATER IMPLEMENTATION
                <div style="background:#fff;border:5px solid #ccc;padding:5px;height:200px;overflow:auto;margin:10px 0;">
                	<h4>Member Terbaru:</h4>
                    <ul>
                    	<li><img src="#" border="0" /> Lorem Ipsum</li>
                        <li><img src="#" border="0" /> Lorem Ipsum</li>
                        <li><img src="#" border="0" /> Lorem Ipsum</li>
                        <li><img src="#" border="0" /> Lorem Ipsum</li>
                        <li><img src="#" border="0" /> Lorem Ipsum</li>
                        <li><img src="#" border="0" /> Lorem Ipsum</li>
                        <li><img src="#" border="0" /> Lorem Ipsum</li>
                        <li><img src="#" border="0" /> Lorem Ipsum</li>
                    </ul>
                </div> -->
                
                <p><img border="0" alt="Support Pelanggan" src="<?php echo base_url(); ?>assets/images/hotline.png"></p>
                
				<?php if (isset($sidenews) && $sidenews != FALSE) { ?>
                    <h3>Berita Terkini:</h3>
                    <div style="background:#fff;border:2px solid #ccc;padding:10px;height:250px;overflow:auto;margin:10px 0;">
                        <header>
                            <p><strong><?php echo $sidenews['judul']; ?></strong></p>
                        </header>
						<?php echo $sidenews['synopsis']; ?>
                        <a href="<?php echo site_url('news/detail/' . $sidenews['judul_url']) ?>">Selengkapnya &raquo;</a>
                    </div>
            	<?php } ?>
                
                <p><a href="#"><img src="<?php echo base_url(); ?>assets/images/banking.png" alt="Perbankan Indonesia" border="0" /></a></p>
            </section>
		</aside>

    <?php } ?>

</div>

<!-- FOOTER -->
<!--  <footer>
    <div>
        <section id="about">
            <p>Copyright &copy 2012, <a href="<?php echo base_url(); ?>">CBCSystem</a>. All Rights Reserved.</p>
        </section>
    </div>
</footer> -->